﻿using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Input;
using System.Windows.Controls;
using ReflectionStudio.Core.Events;
namespace WPFExcelReport
{
    public partial class TABFQC:UIABFQC
    {
        /*
         
           <DataGridTemplateColumn Header="支数值"   Width="48">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate >
                            <Grid >
                                <ex:NumericBox Text="{Binding X001}"/>
                            </Grid>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
         */
        public TABFQC()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VABFOLGE();
            this.DataContext = MV;
            InitializeComponent();
            IsQC = true;

        }
        private void PrintQCCommand(object sender, RoutedEventArgs e)
        {
            DataSet SetQC = new DataSet();
            DataRow DW = VVVLIEF.Instance.TBMain.NewRow();
            string LIEFSCH = txtLIEFSCH.Text.ToString().Trim();
            DW["VVLIEFSCH"] = Helpers.Helper.Right("00000000" + LIEFSCH.Trim(), 8);
            DataSet SResult = VQORDER.Instance.QueryQORDER(DW, 7);
            SetQC.Merge(SResult);
            cDRVV.DocType = "YGRQCVVT";
            cDRVV.PRINT(SetQC);
        }
        
    }
}
